import Main from '@/components/main'
import MainIndex from '@/components/main/main-index.vue'
import { commodityRouter } from '@/router/commodity.js'
import { assetRouter } from '@/router/asset'
import { inventoryRouters } from '@/router/inventory-routers.js'
import { purchaseRouter } from '@/router/purchase.js'
import { ReportRouter } from '@/router/report'
import { fishingRouter } from '@/router/fishing'
import { cmsRouter } from '@/router/cms'
/**
 * 路由中meta除了原生参数外可配置的参数:
 * meta: {
 *  title: { String|Number|Function }
 *         显示在侧边栏、面包屑和标签栏的文字
 *         使用'{{ 多语言字段 }}'形式结合多语言使用，例子看多语言的路由配置;
 *         可以传入一个回调函数，参数是当前路由对象，例子看动态路由和带参路由
 *  hideInBread: (false) 设为true后此级路由将不会出现在面包屑
 *  hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
 *  notCache: (false) 设为true后页面在切换标签后不会缓存，如果需要缓存，无需设置这个字段，而且需要设置页面组件name属性和路由配置的name一致
 *  sn: 可访问该页面的权限编码
 *  snMenu: 子页面对应当前选中的菜单
 *  icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标，如果是自定义图标，需要在图标名称前加下划线'_'
 * }
 */

export default [{
  path: '/login',
  name: 'login',
  meta: {
    title: 'Login - 登录',
    hideInMenu: true
  },
  component: () => import('@/view/login/login.vue')
},
{
  path: '/',
  name: '_home',
  redirect: '/home',
  component: MainIndex,
  meta: {
    hideInMenu: true,
    title: '首页',
    notCache: true
  },
  children: [{
    path: '/home',
    name: 'home',
    meta: {
      hideInMenu: true,
      title: '首页',
      notCache: true,
      icon: 'md-home'
    },
    component: () => import('@/view/single-page/home')
  }]
},
...assetRouter,
...inventoryRouters,
...commodityRouter,
...purchaseRouter,
...cmsRouter,
  // {
  //   path: '/account',
  //   name: 'account',
  //   component: Main,
  //   meta: {
  //     icon: 'md-home',
  //     showAlways: true,
  //     title: '账户信息',
  //     disabled: true
  //   },
  //   children: [
  //     {
  //       path: 'modify_profile',
  //       name: 'modify_profile',
  //       meta: {
  //         title: '资料修改'
  //       },
  //       component: () => import('@/view/account/modify-profile.vue')
  //     }
  //   ]
  // },
  // {
  //   path: '/system_message',
  //   name: 'system_message',
  //   meta: {
  //     icon: 'ios-hammer',
  //     title: '系统消息',
  //     showAlways: true,
  //     disabled: true
  //   },
  //   component: Main,
  //   children: [
  //     {
  //       path: 'list',
  //       name: 'message_list',
  //       meta: {
  //         title: '全部消息'
  //       },
  //       component: () => import('@/view/system-message/list.vue')
  //     },
  //     {
  //       path: 'read',
  //       name: 'message_read',
  //       meta: {
  //         title: '已读消息'
  //       },
  //       component: () => import('@/view/system-message/read.vue')
  //     },
  //     {
  //       path: 'unread',
  //       name: 'message_unread',
  //       meta: {
  //         title: '未读消息'
  //       },
  //       component: () => import('@/view/system-message/unread.vue')
  //     },
  //     {
  //       path: 'detail/:id',
  //       name: 'message_detail',
  //       meta: {
  //         hideInMenu: true,
  //         title: '查看消息详情'
  //       },
  //       component: () => import('@/view/system-message/detail.vue')
  //     }
  //   ]
  // },
  // 系统管理
{
  path: '/system',
  name: 'system',
  meta: {
    icon: '_iconsystem',
    title: '系统管理',
    snMenu: 'system',
    sn: 'moms:merchant:view|moms:org:view|moms:role:view|moms:staff:view'
  },
  component: Main,
  children: [{
    path: 'company',
    name: 'system_company',
    meta: {
      title: '商户管理',
      snMenu: 'system_company',
      sn: 'moms:merchant:view'
    },
    component: () => import('@/view/authorization/system/company.vue')
  },
  {
    path: 'organization_list',
    name: 'organization_list',
    meta: {
      title: '组织机构',
      snMenu: 'organization_list',
      sn: 'moms:org:view'
    },
    component: () => import('@/view/authorization/system/organization/list.vue')
  },
  {
    path: 'organization_create',
    name: 'organization_create',
    meta: {
      title: '新增组织',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'organization_list',
      sn: 'moms:org:create'
    },
    component: () => import('@/view/authorization/system/organization/create.vue')
  },
  {
    path: 'organization_import',
    name: 'organization_import',
    meta: {
      title: '组织导入',
      hideInMenu: true,
      snMenu: 'organization_list',
      sn: 'moms:org:import'
    },
    component: () => import('@/view/authorization/system/organization/import.vue')
  },
  {
    path: 'organization_edit/:id',
    name: 'organization_edit',
    meta: {
      title: '编辑组织',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'organization_list',
      sn: 'moms:org:update'
    },
    component: () => import('@/view/authorization/system/organization/edit.vue')
  },
  {
    path: 'organization_employee/:id',
    name: 'organization_employee',
    meta: {
      title: '组织成员',
      notCache: true,
      hideInMenu: true,
      snMenu: 'organization_list',
      sn: 'moms:org:member'
    },
    component: () => import('@/view/authorization/system/organization/employee.vue')
  },
  {
    path: 'organization_detail/:id',
    name: 'organization_detail',
    meta: {
      title: '组织详情',
      notCache: true,
      hideInMenu: true,
      snMenu: 'organization_list',
      sn: 'moms:org:detail'
    },
    component: () => import('@/view/authorization/system/organization/detail.vue')
  },
  {
    path: 'role_list',
    name: 'role_list',
    meta: {
      title: '角色管理',
      snMenu: 'role_list',
      sn: 'moms:role:view'
    },
    component: () => import('@/view/authorization/system/role/list.vue')
  },
  {
    path: 'role_import',
    name: 'role_import',
    meta: {
      title: '角色导入',
      hideInMenu: true,
      snMenu: 'role_list',
      sn: 'moms:role:import'
    },
    component: () => import('@/view/authorization/system/role/import.vue')
  },
  {
    path: 'role_create',
    name: 'role_create',
    meta: {
      title: '新增角色',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'role_list',
      sn: 'moms:role:create'
    },
    component: () => import('@/view/authorization/system/role/create.vue')
  },
  {
    path: 'role_edit/:id',
    name: 'role_edit',
    meta: {
      title: '编辑角色',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'role_list',
      sn: 'moms:role:update'
    },
    component: () => import('@/view/authorization/system/role/edit.vue')
  },
  {
    path: 'role_detail/:id',
    name: 'role_detail',
    meta: {
      title: '角色详情',
      notCache: true,
      hideInMenu: true,
      snMenu: 'role_list',
      sn: 'moms:role:detail'
    },
    component: () => import('@/view/authorization/system/role/detail.vue')
  },
  {
    path: 'role_employee/:id',
    name: 'role_employee',
    meta: {
      title: '角色成员',
      notCache: true,
      hideInMenu: true,
      snMenu: 'role_list',
      sn: 'moms:role:member'
    },
    component: () => import('@/view/authorization/system/role/employee.vue')
  },
  {
    path: 'role_setting/:id',
    name: 'role_setting',
    meta: {
      title: '设置权限',
      notCache: true,
      hideInMenu: true,
      snMenu: 'role_list',
      sn: 'moms:role:grantfunctionpermission'
    },
    component: () => import('@/view/authorization/system/role/setting.vue')
  },
  {
    path: 'employee_list',
    name: 'employee_list',
    meta: {
      title: '员工管理',
      snMenu: 'employee_list',
      sn: 'moms:staff:view'
    },
    component: () => import('@/view/authorization/system/employee/list.vue')
  },
  {
    path: 'employee_create',
    name: 'employee_create',
    meta: {
      title: '新增员工',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'employee_list',
      sn: 'moms:staff:create'
    },
    component: () => import('@/view/authorization/system/employee/create.vue')
  },
  {
    path: 'employee_edit/:id',
    name: 'employee_edit',
    meta: {
      title: '编辑员工',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'employee_list',
      sn: 'moms:staff:update'
    },
    component: () => import('@/view/authorization/system/employee/edit.vue')
  },
  {
    path: 'employee_detail/:id',
    name: 'employee_detail',
    meta: {
      title: '员工详情',
      notCache: true,
      hideInMenu: true,
      snMenu: 'employee_list',
      sn: 'moms:staff:detail'
    },
    component: () => import('@/view/authorization/system/employee/detail.vue')
  },
  {
    path: 'employee_modify_password/:id',
    name: 'employee_modify_password',
    meta: {
      title: '重置密码',
      notCache: true,
      hideInMenu: true,
      snMenu: 'employee_list',
      sn: 'moms:staff:resetpassword'
    },
    component: () => import('@/view/authorization/system/employee/modify-password.vue')
  },
  {
    path: 'employee_import',
    name: 'employee_import',
    meta: {
      title: '员工导入',
      hideInMenu: true,
      snMenu: 'employee_list',
      sn: 'moms:staff:import'
    },
    component: () => import('@/view/authorization/system/employee/import.vue')
  },
  {
    path: 'employee_function_permission/:id',
    name: 'employee_function_permission',
    meta: {
      title: '功能权限',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'employee_list',
      sn: 'moms:staff:functionpermission'
    },
    component: () => import('@/view/authorization/system/employee/function-permission.vue')
  },
  {
    path: 'employee_data_permission/:id',
    name: 'employee_data_permission',
    meta: {
      title: '数据权限',
      // notCache: true,
      hideInMenu: true,
      snMenu: 'employee_list',
      sn: 'moms:staff:datapermission'
    },
    component: () => import('@/view/authorization/system/employee/data-permission.vue')
  }
  ]
},
{
  path: '/system_log',
  name: 'system_log',
  meta: {
    icon: '_iconsyslog',
    title: '系统日志',
    showAlways: true,
    snMenu: 'system_log',
    sn: 'moms:log:view'
  },
  component: Main,
  children: [{
    path: 'log_list',
    name: 'log_list',
    meta: {
      title: '日志管理',
      snMenu: 'log_list',
      sn: 'moms:log:view'
    },
    component: () => import('@/view/authorization/system-log/list.vue')
  }]
},
{
  path: '/store_manage',
  name: 'store_manage',
  meta: {
    icon: '_iconshop',
    title: '门店管理',
    showAlways: true,
    snMenu: 'store_manage',
    sn: 'moms:shop:view'
  },
  component: Main,
  children: [{
    path: 'store_list',
    name: 'store_list',
    meta: {
      title: '门店列表',
      // notCache: true,
      snMenu: 'store_list',
      sn: 'moms:shop:view'
    },
    component: () => import('@/view/authorization/store/list.vue')
  },
  {
    path: 'store_edit/:id',
    name: 'store_edit',
    meta: {
      hideInMenu: true,
      title: '编辑门店',
      // notCache: true,
      snMenu: 'store_list',
      sn: 'moms:shop:update'
    },
    component: () => import('@/view/authorization/store/edit.vue')
  },
  {
    path: 'store_qrcode/:id',
    name: 'store_qrcode',
    meta: {
      hideInMenu: true,
      title: '生成门店二维码',
      // notCache: true,
      snMenu: 'store_list',
      sn: 'moms:shop:genqrcode'
    },
    component: () => import('@/view/authorization/store/qrcode.vue')
  },
  {
    path: 'store_detail/:id',
    name: 'store_detail',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '查看门店详情',
      snMenu: 'store_list',
      sn: 'moms:shop:detail'
    },
    component: () => import('@/view/authorization/store/detail.vue')
  },
  {
    path: 'store_import',
    name: 'store_import',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '门店导入',
      snMenu: 'store_list',
      sn: 'moms:shop:detail'
    },
    component: () => import('@/view/authorization/store/import.vue')
  },
  {
    path: 'store_group',
    name: 'store_group',
    meta: {
      title: '分组管理',
      snMenu: 'store_group',
      sn: 'moms:shop:shoplabelview'
    },
    component: () => import('@/view/authorization/store/group/group.vue')
  },
  {
    path: 'create_group',
    name: 'create_group',
    meta: {
      title: '新建分组',
      hideInMenu: true,
      snMenu: 'store_group',
      sn: 'moms:shop:shoplabelcreate'
    },
    component: () => import('@/view/authorization/store/group/create.vue')
  },
  {
    path: 'edit_group/:id',
    name: 'edit_group',
    meta: {
      title: '编辑分组',
      hideInMenu: true,
      snMenu: 'store_group',
      sn: 'moms:shop:shoplabelupdate'
    },
    component: () => import('@/view/authorization/store/group/edit.vue')
  },
  {
    path: 'store_tag',
    name: 'store_tag',
    meta: {
      title: '标签管理',
      hideInMenu: true,
      snMenu: 'store_group',
      sn: 'moms:shop:shoplabelview'
    },
    component: () => import('@/view/authorization/store/tag/tag.vue')
  },
  {
    path: 'create_tag',
    name: 'create_tag',
    meta: {
      title: '新建标签',
      hideInMenu: true,
      snMenu: 'store_group',
      sn: 'moms:shop:shoplabelcreate'
    },
    component: () => import('@/view/authorization/store/tag/create.vue')
  },
  {
    path: 'edit_tag/:id',
    name: 'edit_tag',
    meta: {
      title: '编辑标签',
      hideInMenu: true,
      snMenu: 'store_group',
      sn: 'moms:shop:shoplabelupdate'
    },
    component: () => import('@/view/authorization/store/tag/edit.vue')
  },
  {
    path: 'store_setting/:id',
    name: 'store_setting',
    meta: {
      hideInMenu: true,
      title: '门店设置',
      snMenu: 'store_list',
      sn: 'moms:setting:view'
    },
    component: () => import('@/view/authorization/store/setting.vue')
  },
  {
    path: 'store_setting/page/7',
    name: 'store_setting_page_7',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '跑马灯设置',
      snMenu: 'store_list',
      sn: 'moms:setting:horselamp'
    },
    component: () => import('@/view/authorization/store/components/setting-form7.vue')
  },
  {
    path: 'store_setting/page/10',
    name: 'store_setting_page_10',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '营业日结算时间设置',
      snMenu: 'store_list',
      sn: 'moms:setting:businesshours'
    },
    component: () => import('@/view/authorization/store/components/setting-form10.vue')
  },
  {
    path: 'store_setting/page/4',
    name: 'store_setting_page_4',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '非会员彩票打印极值设置',
      snMenu: 'store_list',
      sn: 'moms:setting:customerticketprint'
    },
    component: () => import('@/view/authorization/store/components/setting-form4.vue')
  },
  {
    path: 'store_setting/page/1',
    name: 'store_setting_page_1',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '游戏币单价设置',
      snMenu: 'store_list',
      sn: 'moms:setting:coinprice'
    },
    component: () => import('@/view/authorization/store/components/setting-form1.vue')
  },
  {
    path: 'store_setting/page/11',
    name: 'store_setting_page_11',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '签赠设置',
      snMenu: 'store_list',
      sn: 'moms:setting:signing'
    },
    component: () => import('@/view/authorization/store/components/setting-form11.vue')
  },
  {
    path: 'store_setting/page/28',
    name: 'store_setting_page_28',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '自采供应商设置',
      snMenu: 'store_list',
      sn: 'moms:setting:supplier'
    },
    component: () => import('@/view/authorization/store/components/setting-form28.vue')
  },
  {
    path: 'store_setting/page/3',
    name: 'store_setting_page_3',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '收银台支付方式显示设置',
      snMenu: 'store_list',
      sn: 'moms:setting:paytype'
    },
    component: () => import('@/view/authorization/store/components/setting-form3.vue')
  },
  {
    path: 'store_setting/page/5',
    name: 'store_setting_page_5',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '打印小票开关配置',
      snMenu: 'store_list',
      sn: 'moms:setting:consumerprint'
    },
    component: () => import('@/view/authorization/store/components/setting-form5.vue')
  },
  {
    path: 'store_setting/page/20',
    name: 'store_setting_page_20',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '收银点设置',
      snMenu: 'store_list',
      sn: 'moms:setting:cashier'
    },
    component: () => import('@/view/authorization/store/components/setting-form20.vue')
  },
  {
    path: 'store_setting/page/21',
    name: 'store_setting_page_21',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '收款项设置',
      snMenu: 'store_list',
      sn: 'moms:setting:bizitem'
    },
    component: () => import('@/view/authorization/store/components/setting-form21.vue')
  },
  {
    path: 'store_setting/page/12',
    name: 'store_setting_page_12',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '套餐设置',
      snMenu: 'store_list',
      sn: 'moms:setting:package'
    },
    component: () => import('@/view/authorization/store/components/setting-form12.vue')
  },
  {
    path: 'store_setting/page/14',
    name: 'store_setting_page_14',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '水吧商品类别设置',
      snMenu: 'store_list',
      sn: 'moms:setting:restzonegoodscategory'
    },
    component: () => import('@/view/authorization/store/components/setting-form14.vue')
  },
  {
    path: 'store_setting/page/22',
    name: 'store_setting_page_22',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '水吧套餐设置',
      snMenu: 'store_list',
      sn: 'moms:setting:restzonepackage'
    },
    component: () => import('@/view/authorization/store/components/setting-form22.vue')
  },
  {
    path: 'store_setting/page/15',
    name: 'store_setting_page_15',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '水吧打印设置',
      snMenu: 'store_list',
      sn: 'moms:setting:restzoneprint'
    },
    component: () => import('@/view/authorization/store/components/setting-form15.vue')
  },
  {
    path: 'store_setting/page/13',
    name: 'store_setting_page_13',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '礼品商品设置',
      snMenu: 'store_list',
      sn: 'moms:setting:gift'
    },
    component: () => import('@/view/authorization/store/components/setting-form13.vue')
  },
  {
    path: 'store_setting/page/16',
    name: 'store_setting_page_16',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '礼品类别设置',
      snMenu: 'store_list',
      sn: 'moms:setting:giftcategory'
    },
    component: () => import('@/view/authorization/store/components/setting-form16.vue')
  },
  {
    path: 'store_setting/page/23',
    name: 'store_setting_page_23',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '水吧商品设置',
      snMenu: 'store_list',
      sn: 'moms:setting:restzonegoods'
    },
    component: () => import('@/view/authorization/store/components/setting-form23.vue')
  },
  {
    path: 'store_setting/page/24',
    name: 'store_setting_page_24',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '出彩票类型配置',
      snMenu: 'store_list',
      sn: 'moms:setting:tickettype'
    },
    component: () => import('@/view/authorization/store/components/setting-form24.vue')
  },
  {
    path: 'store_setting/page/26',
    name: 'store_setting_page_26',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '刷卡器待机动画设置',
      snMenu: 'store_list',
      sn: 'moms:setting:idlescreen'
    },
    component: () => import('@/view/authorization/store/components/setting-form26.vue')
  },
  {
    path: 'store_setting/page/6',
    name: 'store_setting_page_6',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '固件升级设置',
      snMenu: 'store_list',
      sn: 'moms:setting:firmware'
    },
    component: () => import('@/view/authorization/store/components/setting-form6.vue')
  },
  {
    path: 'store_setting/page/27',
    name: 'store_setting_page_27',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '兑换券设置',
      snMenu: 'store_list',
      sn: 'moms:setting:coupon'
    },
    component: () => import('@/view/authorization/store/components/setting-form27.vue')
  },
  {
    path: 'store_setting/page/29',
    name: 'store_setting_page_29',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '兑奖台存币开关',
      snMenu: 'store_list',
      sn: 'moms:setting:exchangecoinswitch'
    },
    component: () => import('@/view/authorization/store/components/setting-form29.vue')
  },
  {
    path: 'store_setting/page/30',
    name: 'store_setting_page_30',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '全电子币经营模式',
      snMenu: 'store_list',
      sn: 'moms:setting:virtualcoin'
    },
    component: () => import('@/view/authorization/store/components/setting-form30.vue')
  },
  {
    path: 'store_setting/page/31',
    name: 'store_setting_page_31',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: 'SVIP权益设置',
      snMenu: 'store_list',
      sn: 'moms:setting:svipbenefit'
    },
    component: () => import('@/view/authorization/store/components/setting-form31.vue')
  }
  ]
},
{
  path: '/setting',
  name: 'setting',
  component: Main,
  meta: {
    icon: '_iconsetting',
    showAlways: true,
    title: '基础设置',
    snMenu: 'setting',
    sn: 'moms:globalsetting:view'
  },
  children: [{
    path: 'global_setting',
    name: 'global_setting',
    meta: {
      title: '全局设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:view'
    },
    component: () => import('@/view/setting/global-setting.vue')
  },
  {
    path: 'firmware_setting',
    name: 'firmware_setting',
    meta: {
      title: '刷卡器设置',
      notCache: true,
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:view'
    },
    component: () => import('@/view/setting/firmware-setting.vue')
  },
  {
    path: 'global_setting/page/1',
    name: 'global_setting_page_1',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '刷卡器与服务器临界值设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:serverthreshold'
    },
    component: () => import('@/view/setting/components/setting-form1.vue')
  },
  {
    path: 'global_setting/page/3',
    name: 'global_setting_page_3',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '跑马灯设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:horselamp'
    },
    component: () => import('@/view/setting/components/setting-form3.vue')
  },
  {
    path: 'global_setting/page/4',
    name: 'global_setting_page_4',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '游戏币提取额度设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:withdrawallimit'
    },
    component: () => import('@/view/setting/components/setting-form4.vue')
  },
  {
    path: 'global_setting/page/6',
    name: 'global_setting_page_6',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '游戏币单价设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:coinprice'
    },
    component: () => import('@/view/setting/components/setting-form6.vue')
  },
  {
    path: 'global_setting/page/7',
    name: 'global_setting_page_7',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '补卡收费金额设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:reissuecardfee'
    },
    component: () => import('@/view/setting/components/setting-form7.vue')
  },
  {
    path: 'global_setting/page/13',
    name: 'global_setting_page_13',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '非会员临时卡押金',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:tempcarddeposit'
    },
    component: () => import('@/view/setting/components/setting-form13.vue')
  },
  {
    path: 'global_setting/page/14',
    name: 'global_setting_page_14',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '会员副卡押金',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:secondarycarddeposit'
    },
    component: () => import('@/view/setting/components/setting-form14.vue')
  },
  {
    path: 'global_setting/page/16',
    name: 'global_setting_page_16',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '收银台支付方式显示设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:paytype'
    },
    component: () => import('@/view/setting/components/setting-form16.vue')
  },
  {
    path: 'global_setting/page/10',
    name: 'global_setting_page_10',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '营业日结算时间设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:businesshours'
    },
    component: () => import('@/view/setting/components/setting-form10.vue')
  },
  {
    path: 'global_setting/page/17',
    name: 'global_setting_page_17',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '打印小票开关配置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:consumerprint'
    },
    component: () => import('@/view/setting/components/setting-form17.vue')
  },
  {
    path: 'global_setting/page/11',
    name: 'global_setting_page_11',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '签赠设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:signing'
    },
    component: () => import('@/view/setting/components/setting-form11.vue')
  },
  {
    path: 'global_setting/page/15',
    name: 'global_setting_page_15',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '非会员彩票打印极值设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:customerticketprint'
    },
    component: () => import('@/view/setting/components/setting-form15.vue')
  },
  {
    path: 'global_setting/page/5',
    name: 'global_setting_page_5',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '新待机动画管理',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:newidlescreen'
    },
    component: () => import('@/view/setting/components/setting-form5.vue')
  },
  {
    path: 'global_setting/page/8',
    name: 'global_setting_page_8',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '刷卡器待机动画设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:idlescreen'
    },
    component: () => import('@/view/setting/components/setting-form8.vue')
  },
  {
    path: 'global_setting/page/18',
    name: 'global_setting_page_18',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '固件升级上传设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:firmware'
    },
    component: () => import('@/view/setting/components/setting-form18.vue')
  },
  {
    path: 'global_setting/page/19',
    name: 'global_setting_page_19',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '新固件管理',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:newfirmware'
    },
    component: () => import('@/view/setting/components/setting-form19.vue')
  },
  {
    path: 'global_setting/page/20',
    name: 'global_setting_page_20',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '新出票类型设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:shopticket'
    },
    component: () => import('@/view/setting/components/setting-form20.vue')
  },
  {
    path: 'global_setting/page/21',
    name: 'global_setting_page_21',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '新跑马灯设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:shopmarquee'
    },
    component: () => import('@/view/setting/components/setting-form21.vue')
  },
  {
    path: 'global_setting/page/22',
    name: 'global_setting_page_22',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '新固件升级设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:shopfirmware'
    },
    component: () => import('@/view/setting/components/setting-form22.vue')
  },
  {
    path: 'global_setting/page/23',
    name: 'global_setting_page_23',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '新待机动画设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:shopidlescreen'
    },
    component: () => import('@/view/setting/components/setting-form23.vue')
  },
  {
    path: 'global_setting/page/25',
    name: 'global_setting_page_25',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '小游戏入口设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:gameentryupdate'
    },
    component: () => import('@/view/setting/components/setting-form25.vue')
  },
  {
    path: 'global_setting/page/26',
    name: 'global_setting_page_26',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '彩票有效期设定',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:ticketexpirydate'
    },
    component: () => import('@/view/setting/components/setting-form26.vue')
  },
  {
    path: 'global_setting/page/27',
    name: 'global_setting_page_27',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '积分的有效期设定',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:pointsceneexpirydate'
    },
    component: () => import('@/view/setting/components/setting-form27.vue')
  },
  {
    path: 'global_setting/page/animation/slit',
    name: 'animation_slit',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '投币口-待机动画设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:idlescreen' // 此处需做修改，更改为待机动画管理的权限
    },
    component: () => import('@/view/setting/components/animation-slit.vue')
  },
  {
    path: 'global_setting/page/firmware/slit',
    name: 'firmware_slit',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '投币口-固件设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:shopfirmware' // 此处需做修改，更改为待机动画管理的权限
    },
    component: () => import('@/view/setting/components/firmware-slit.vue')
  },
  {
    path: 'global_setting/page/marquee/slit',
    name: 'marquee_slit',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '投币口-跑马灯设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:shopmarquee' // 此处需做修改，更改为待机动画管理的权限
    },
    component: () => import('@/view/setting/components/marquee-slit.vue')
  },
  {
    path: 'global_setting/page/outBill/slit',
    name: 'outbill_slit',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '投币口-出票类型设置',
      snMenu: 'firmware_setting',
      sn: 'moms:globalsetting:shopticket' // 此处需做修改，更改为待机动画管理的权限
    },
    component: () => import('@/view/setting/components/outbill-slit.vue')
  },
  {
    path: 'global_setting/page/25',
    name: 'global_setting_page_25',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '小游戏入口设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:gameentryupdate'
    },
    component: () => import('@/view/setting/components/setting-form25.vue')
  },
  {
    path: 'global_setting/page/26',
    name: 'global_setting_page_26',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '彩票有效期设定',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:ticketexpirydate'
    },
    component: () => import('@/view/setting/components/setting-form26.vue')
  },
  {
    path: 'global_setting/page/27',
    name: 'global_setting_page_27',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '积分的有效期设定',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:pointsceneexpirydate'
    },
    component: () => import('@/view/setting/components/setting-form27.vue')
  },
  {
    path: 'global_setting/page/28',
    name: 'global_setting_page_28',
    meta: {
      hideInMenu: true,
      // notCache: true,
      title: '兑奖台存币开关',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:exchangecoinswitch'
    },
    component: () => import('@/view/setting/components/setting-form28.vue')
  },
  {
    path: 'global_setting/page/29',
    name: 'global_setting_page_29',
    meta: {
      hideInMenu: true,
      title: '集卡活动参数设置',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:cardactivityconfig'
    },
    component: () => import('@/view/setting/components/setting-form29.vue')
  },
  {
    path: 'global_setting/page/30',
    name: 'global_setting_page_30',
    meta: {
      hideInMenu: true,
      notCache: true,
      title: '全电子币经营模式',
      snMenu: 'global_setting',
      sn: 'moms:globalsetting:virtualcoin'
    },
    component: () => import('@/view/setting/components/setting-form30.vue')
  },
  {
    path: 'shopmsg-setting',
    name: 'shopmsg-setting',
    meta: {
      title: '门店信息配置',
      notCache: true,
      snMenu: 'shopmsg-setting',
      sn: 'moms:globalsetting:shopinfoconfig'
    },
    component: () => import('@/view/setting/shopmsg-setting.vue')
  },
  {
    path: 'global_setting/page/31',
    name: 'global_setting_page_31',
    meta: {
      title: '门店类型',
      hideInMenu: true,
      snMenu: 'shopmsg-setting',
      sn: 'moms:globalsetting:shopinfoconfig'
    },
    component: () => import('@/view/setting/components/setting-form31.vue')
  },
  {
    path: 'global_setting/page/32',
    name: 'global_setting_page_32',
    meta: {
      title: '门店状态',
      hideInMenu: true,
      snMenu: 'shopmsg-setting',
      sn: 'moms:globalsetting:shopinfoconfig'
    },
    component: () => import('@/view/setting/components/setting-form32.vue')
  },
  {
    path: 'global_setting/page/33',
    name: 'global_setting_page_33',
    meta: {
      title: '品牌',
      hideInMenu: true,
      snMenu: 'shopmsg-setting',
      sn: 'moms:globalsetting:shopinfoconfig'
    },
    component: () => import('@/view/setting/components/setting-form33.vue')
  },
  {
    path: 'global_setting/page/34',
    name: 'global_setting_page_34',
    meta: {
      title: '门店等级',
      hideInMenu: true,
      snMenu: 'shopmsg-setting',
      sn: 'moms:globalsetting:shopinfoconfig'
    },
    component: () => import('@/view/setting/components/setting-form34.vue')
  },
  {
    path: 'global_setting/page/35',
    name: 'global_setting_page_35',
    meta: {
      title: '项目类型',
      hideInMenu: true,
      snMenu: 'shopmsg-setting',
      sn: 'moms:globalsetting:shopinfoconfig'
    },
    component: () => import('@/view/setting/components/setting-form35.vue')
  }
  ]
},
{
  path: '/order',
  name: 'order',
  meta: {
    icon: '_iconorder',
    title: '订单中心',
    showAlways: true,
    snMenu: 'order',
    sn: 'moms:order:ordinary|moms:order:refundview|moms:order:special|moms:order:specialrefund'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'order_list',
    meta: {
      title: '普通订单',
      snMenu: 'order_list',
      sn: 'moms:order:ordinary'
    },
    component: () => import('@/view/order/list.vue')
  },
  {
    path: 'refund_list',
    name: 'order_refund_list',
    meta: {
      title: '普通退款订单',
      snMenu: 'order_refund_list',
      sn: 'moms:order:refundview'
    },
    component: () => import('@/view/order/refund-list.vue')
  },
  {
    path: 'special_list',
    name: 'order_special_list',
    meta: {
      title: '特殊订单',
      snMenu: 'order_special_list',
      sn: 'moms:order:special'
    },
    component: () => import('@/view/order/special-list.vue')
  },
  {
    path: 'special_refund_list',
    name: 'order_special_refund_list',
    meta: {
      title: '特殊退款订单',
      snMenu: 'order_special_refund_list',
      sn: 'moms:order:specialrefund'
    },
    component: () => import('@/view/order/special-refund-list.vue')
  }
    // {
    //   path: 'reversing_list',
    //   name: 'order_reversing_list',
    //   meta: {
    //     title: '冲正订单',
    //     sn: 'moms:order:reversal'
    //   },
    //   component: () => import('@/view/order/reversing-list.vue')
    // }
  ]
},
{
  path: '/payment_service',
  name: 'payment_service',
  meta: {
    title: '支付服务商',
    sn: 'moms:pay:providerview'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'payment_service_list',
    meta: {
      title: '支付服务商管理',
      icon: '_iconzhifufuwushangguanli',
      snMenu: 'payment_service_list',
      sn: 'moms:pay:providerview'
    },
    component: () => import('@/view/payment/center/service/list.vue')
  },
  {
    path: 'create',
    name: 'payment_service_create',
    meta: {
      title: '新增支付服务商',
      hideInMenu: true,
      snMenu: 'payment_service_list',
      sn: 'moms:pay:providercreate'
    },
    component: () => import('@/view/payment/center/service/create.vue')
  },
  {
    path: 'edit/:id',
    name: 'payment_service_edit',
    meta: {
      title: '编辑服务商管理',
      hideInMenu: true,
      snMenu: 'payment_service_list',
      sn: 'moms:pay:providerupdate'
    },
    component: () => import('@/view/payment/center/service/edit.vue')
  }
  ]
},
{
  path: '/payment_passageway',
  name: 'payment_passageway',
  meta: {
    title: '支付通道',
    sn: 'moms:pay:channelview'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'payment_passageway_list',
    meta: {
      title: '支付通道管理',
      icon: '_iconzhifutongdaoguanli',
      snMenu: 'payment_passageway_list',
      sn: 'moms:pay:channelview'
    },
    component: () => import('@/view/payment/center/passageway/list.vue')
  },
  {
    path: 'create',
    name: 'payment_passageway_create',
    meta: {
      title: '新增支付通道',
      hideInMenu: true,
      snMenu: 'payment_passageway_list',
      sn: 'moms:pay:channelcreate'
    },
    component: () => import('@/view/payment/center/passageway/create.vue')
  },
  {
    path: 'edit/:id',
    name: 'payment_passageway_edit',
    meta: {
      title: '编辑支付通道',
      hideInMenu: true,
      snMenu: 'payment_passageway_list',
      sn: 'moms:pay:channelupdate'
    },
    component: () => import('@/view/payment/center/passageway/edit.vue')
  }
  ]
},
{
  path: '/payment_account',
  name: 'payment_account',
  meta: {
    title: '商户账号',
    sn: 'moms:pay:accountview'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'payment_account_list',
    meta: {
      title: '商户账号管理',
      icon: '_iconshanghuzhanghaoguanli',
      snMenu: 'payment_account_list',
      sn: 'moms:pay:accountview'
    },
    component: () => import('@/view/payment/center/account/list.vue')
  },
  {
    path: 'create',
    name: 'payment_account_create',
    meta: {
      title: '新增商户账号',
      hideInMenu: true,
      snMenu: 'payment_account_list',
      sn: 'moms:pay:accountcreate'
    },
    component: () => import('@/view/payment/center/account/create.vue')
  },
  {
    path: 'create_child/:id',
    name: 'payment_account_create_child',
    meta: {
      title: '新增微信子账号',
      hideInMenu: true,
      snMenu: 'payment_account_list',
      sn: 'moms:pay:accountcreate'
    },
    component: () => import('@/view/payment/center/account/createChild.vue')
  },
  {
    path: 'edit/:id',
    name: 'payment_account_edit',
    meta: {
      title: '编辑商户账号',
      hideInMenu: true,
      snMenu: 'payment_account_list',
      sn: 'moms:pay:accountupdate'
    },
    component: () => import('@/view/payment/center/account/edit.vue')
  },
  {
    path: 'detail/:id',
    name: 'payment_account_detail',
    meta: {
      title: '查看商户账号详情',
      notCache: true,
      hideInMenu: true,
      snMenu: 'payment_account_list',
      sn: 'moms:pay:accountview'
    },
    component: () => import('@/view/payment/center/account/detail.vue')
  }
  ]
},
{
  path: '/payment_shop',
  name: 'payment_shop',
  meta: {
    title: '门店支付',
    sn: 'moms:pay:shopaccountview'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'payment_shop_list',
    meta: {
      title: '门店支付管理',
      icon: '_iconmendianzhifuguanli',
      snMenu: 'payment_shop_list',
      sn: 'moms:pay:shopaccountview'
    },
    component: () => import('@/view/payment/center/shop.vue')
  }]
},
{
  path: '/payment_check',
  name: 'payment_check',
  meta: {
    icon: '_iconpaycheck',
    title: '支付对账管理',
    showAlways: true,
    snMenu: 'payment_check',
    sn: 'moms:pay:viewexternalbill|moms:pay:viewinternalbill'
  },
  component: Main,
  children: [
    {
      path: 'inside_list',
      name: 'payment_check_inside_list',
      meta: {
        title: '内部对账',
        snMenu: 'payment_check_inside_list',
        sn: 'moms:pay:viewinternalbill'
      },
      component: () => import('@/view/payment/check/inside-list.vue')
    },
    {
      path: 'inside_list_notes/:id',
      name: 'payment_check_inside_notes',
      meta: {
        title: '处理备注查看',
        notCache: true,
        hideInMenu: true,
        snMenu: 'payment_check_inside_list',
        sn: 'moms:pay:viewinternalbill'
      },
      component: () => import('@/view/payment/check/insideNotes.vue')
    },
    {
      path: 'outside_list',
      name: 'payment_check_outside_list',
      meta: {
        title: '外部对账',
        snMenu: 'payment_check_outside_list',
        sn: 'moms:pay:viewexternalbill'
      },
      component: () => import('@/view/payment/check/outside-list.vue')
    }
  ]
},
{
  path: '/payment_manage',
  name: 'payment_manage',
  meta: {
    icon: '_iconpay',
    title: '支付记录管理',
    showAlways: true,
    snMenu: 'payment_manage',
    sn: 'moms:pay:viewpayrecords|moms:pay:viewrefundrecords'
  },
  component: Main,
  children: [{
    path: 'pay_list',
    name: 'payment_pay_list',
    meta: {
      title: '支付记录',
      snMenu: 'payment_pay_list',
      sn: 'moms:pay:viewpayrecords'
    },
    component: () => import('@/view/payment/manage/pay-list.vue')
  },
  {
    path: 'refund_list',
    name: 'payment_refund_list',
    meta: {
      title: '退款记录',
      snMenu: 'payment_refund_list',
      sn: 'moms:pay:viewrefundrecords'
    },
    component: () => import('@/view/payment/manage/refund-list.vue')
  }
    // {
    //   path: 'reversing_list',
    //   name: 'payment_reversing_list',
    //   meta: {
    //     title: '冲正记录',
    //     sn: 'moms:pay:exportreversalrecords'
    //   },
    //   component: () => import('@/view/payment/manage/reversing-list.vue')
    // }
  ]
},
{
  path: '/member',
  name: 'member',
  meta: {
    icon: '_iconhuiyuan',
    title: '会员管理',
    showAlways: true,
    snMenu: 'member',
    sn: 'moms:member:levelview|moms:member:benefitsview'
  },
  component: Main,
  children: [
    {
      path: 'level',
      name: 'member_level_list',
      meta: {
        title: '会员等级',
        notCache: true,
        snMenu: 'member_level_list',
        sn: 'moms:member:levelview'
      },
      component: () => import('@/view/member/level/list.vue')
    },
    {
      path: 'level_add',
      name: 'member_level_add',
      meta: {
        title: '添加会员等级',
        hideInMenu: true,
        snMenu: 'member_level_list',
        sn: 'moms:member:levelcreate'
      },
      component: () => import('@/view/member/level/create.vue')
    },
    {
      path: 'level_edit/:id',
      name: 'member_level_edit',
      meta: {
        title: '编辑会员等级',
        hideInMenu: true,
        snMenu: 'member_level_list',
        sn: 'moms:member:levelupdate'
      },
      component: () => import('@/view/member/level/edit.vue')
    },
    {
      path: 'rights',
      name: 'member_rights_list',
      meta: {
        title: '会员权益',
        notCache: true,
        snMenu: 'member_rights_list',
        sn: 'moms:member:benefitsview'
      },
      component: () => import('@/view/member/rights/list.vue')
    },
    {
      path: 'rights_rule',
      name: 'member_rights_rule',
      meta: {
        title: '会员权益规则设置',
        hideInMenu: true,
        snMenu: 'member_rights_list',
        sn: 'moms:member:benefisupdate'
      },
      component: () => import('@/view/member/rights/rule.vue')
    },
    {
      path: 'rights_add',
      name: 'member_rights_add',
      meta: {
        title: '添加会员权益',
        hideInMenu: true,
        snMenu: 'member_rights_list',
        sn: 'moms:member:benefiscreate'
      },
      component: () => import('@/view/member/rights/create.vue')
    },
    {
      path: 'rights_edit/:id',
      name: 'member_rights_edit',
      meta: {
        title: '编辑会员权益',
        hideInMenu: true,
        snMenu: 'member_rights_list',
        sn: 'moms:member:benefisupdate'
      },
      component: () => import('@/view/member/rights/edit.vue')
    }
  ]
},
{
  path: '/market/coupon',
  name: 'market_coupon',
  meta: {
    title: '优惠券管理',
    icon: '_iconyouhuiquanguanli',
    showAlways: true,
    snMenu: 'market_coupon',
    sn: 'moms:market:couponview|moms:market:smartcouponview'
  },
  component: Main,
  children: [{
    path: 'coupon_list',
    name: 'market_coupon_list',
    meta: {
      title: '优惠券',
      snMenu: 'market_coupon_list',
      sn: 'moms:market:couponview'
    },
    component: () => import('@/view/market/coupon/list.vue')
  },
  {
    path: 'coupon_create',
    name: 'market_coupon_create',
    meta: {
      title: '新增优惠券',
      hideInMenu: true,
      snMenu: 'market_coupon_list',
      sn: 'moms:market:couponcreate'
    },
    component: () => import('@/view/market/coupon/create.vue')
  },
  {
    path: 'coupon_edit/:id',
    name: 'market_coupon_edit',
    meta: {
      title: '编辑优惠券',
      hideInMenu: true,
      snMenu: 'market_coupon_list',
      sn: 'moms:market:couponupdate'
    },
    component: () => import('@/view/market/coupon/edit.vue')
  },
  {
    path: 'coupon_detail/:id',
    name: 'market_coupon_detail',
    meta: {
      title: '优惠券详情',
      hideInMenu: true,
      notCache: true,
      snMenu: 'market_coupon_list',
      sn: 'moms:market:coupondetail'
    },
    component: () => import('@/view/market/coupon/detail.vue')
  },
  {
    path: 'smart_coupon_list',
    name: 'market_smart_coupon_list',
    meta: {
      title: '定向发券',
      snMenu: 'market_smart_coupon_list',
      sn: 'moms:market:smartcouponview'
    },
    component: () => import('@/view/market/smartcoupon/list.vue')
  },
  {
    path: 'smart_coupon_create',
    name: 'market_smart_coupon_create',
    meta: {
      title: '新增定向发券',
      hideInMenu: true,
      snMenu: 'market_smart_coupon_list',
      sn: 'moms:market:smartcouponcreate'
    },
    component: () => import('@/view/market/smartcoupon/create.vue')
  },
  {
    path: 'smart_coupon_edit/:id',
    name: 'market_smart_coupon_edit',
    meta: {
      title: '编辑定向发券',
      hideInMenu: true,
      snMenu: 'market_smart_coupon_list',
      sn: 'moms:market:smartcouponupdate'
    },
    component: () => import('@/view/market/smartcoupon/edit.vue')
  },
  {
    path: 'smart_coupon_detail/:id',
    name: 'market_smart_coupon_detail',
    meta: {
      title: '定向发券详情',
      hideInMenu: true,
      notCache: true,
      snMenu: 'market_smart_coupon_list',
      sn: 'moms:market:smartcoupondetail'
    },
    component: () => import('@/view/market/smartcoupon/detail.vue')
  }
  ]
},
{
  path: '/promote_sales',
  name: 'promote_sales',
  meta: {
    title: '促销管理',
    sn: 'moms:market:freegiftview'
  },
  component: Main,
  children: [{
    path: 'freegift_list',
    name: 'market_freegift_list',
    meta: {
      title: '促销管理',
      // notCache: true,
      icon: '_iconmendianzhifuguanli',
      snMenu: 'market_freegift_list',
      sn: 'moms:market:freegiftview'
    },
    component: () => import('@/view/market/freegift/list.vue')
  },
  {
    path: 'freegift_create',
    name: 'market_freegift_create',
    meta: {
      title: '新增促销活动',
      hideInMenu: true,
      snMenu: 'market_freegift_list',
      sn: 'moms:market:freegiftcreate'
    },
    component: () => import('@/view/market/freegift/create.vue')
  },
  {
    path: 'freegift_edit/:id',
    name: 'market_freegift_edit',
    meta: {
      title: '编辑促销活动',
      hideInMenu: true,
      snMenu: 'market_freegift_list',
      sn: 'moms:market:freegiftupdate'
    },
    component: () => import('@/view/market/freegift/edit.vue')
  },
  {
    path: 'freegift_detail/:id',
    name: 'market_freegift_detail',
    meta: {
      title: '促销活动详情',
      hideInMenu: true,
      notCache: true,
      snMenu: 'market_freegift_list',
      sn: 'moms:market:freegiftdetail'
    },
    component: () => import('@/view/market/freegift/detail.vue')
  }]
},
{
  path: '/market/active',
  name: 'market_active',
  meta: {
    title: '活动管理',
    sn: 'moms:market:activitylist'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'market_active_list',
    meta: {
      title: '活动管理',
      icon: '_iconzhifufuwushangguanli',
      snMenu: 'market_active_list',
      sn: 'moms:market:activitylist'
    },
    component: () => import('@/view/market/active/list.vue')
  },
  {
    path: 'create/:type',
    name: 'market_active_create',
    meta: {
      title: '新增活动',
      hideInMenu: true,
      snMenu: 'market_active_list',
      sn: 'moms:market:activitycreate'
    },
    component: () => import('@/view/market/active/create.vue')
  },
  {
    path: 'edit/:id/:type',
    name: 'market_active_edit',
    meta: {
      title: '编辑活动',
      hideInMenu: true,
      snMenu: 'market_active_list',
      sn: 'moms:market:activityupdate'
    },
    component: () => import('@/view/market/active/edit.vue')
  },
  {
    path: 'detail/:id/:type',
    name: 'market_active_detail',
    meta: {
      title: '活动详情',
      hideInMenu: true,
      notCache: true,
      snMenu: 'market_active_list',
      sn: 'moms:market:activitydetail'
    },
    component: () => import('@/view/market/active/detail.vue')
  }
  ]
},
{
  path: '/market/point',
  name: 'market_point',
  meta: {
    title: '积分管理',
    sn: 'moms:market:pointsceneview'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'market_point_list',
    meta: {
      title: '积分管理',
      icon: '_iconjifenguanli',
      snMenu: 'market_point_list',
      sn: 'moms:market:pointsceneview'
    },
    component: () => import('@/view/market/point/list.vue')
  },
  {
    path: 'create/:type',
    name: 'market_point_create',
    meta: {
      title: '新增积分场景',
      hideInMenu: true,
      snMenu: 'market_point_list',
      sn: 'moms:market:pointscenecreate'
    },
    component: () => import('@/view/market/point/create.vue')
  },
  {
    path: 'edit/:id/:type',
    name: 'market_point_edit',
    meta: {
      title: '编辑积分场景',
      hideInMenu: true,
      snMenu: 'market_point_list',
      sn: 'moms:market:pointsceneupdate'
    },
    component: () => import('@/view/market/point/edit.vue')
  },
  {
    path: 'detail/:id',
    name: 'market_point_detail',
    meta: {
      title: '积分场景详情',
      hideInMenu: true,
      notCache: true,
      snMenu: 'market_point_list',
      sn: 'moms:market:pointscenedetail'
    },
    component: () => import('@/view/market/point/detail.vue')
  }
  ]
},
{
  path: '/market/pointshop',
  name: 'market_pointshop',
  meta: {
    title: '积分商城管理',
    sn: 'moms:market:goodsview'
  },
  component: Main,
  children: [{
    path: 'goods_list',
    name: 'market_pointshop_goods_list',
    meta: {
      title: '积分商城管理',
      icon: '_iconjifenshangcheng',
      snMenu: 'market_pointshop_goods_list',
      sn: 'moms:market:goodsview'
      // notCache: false
    },
    component: () => import('@/view/market/pointshop/goods/list.vue')
  },
  {
    path: 'goods_create',
    name: 'market_pointshop_goods_create',
    meta: {
      title: '新增上架商品',
      hideInMenu: true,
      snMenu: 'market_pointshop_goods_list',
      sn: 'moms:market:goodscreate'
    },
    component: () => import('@/view/market/pointshop/goods/create.vue')
  },
  {
    path: 'goods_edit/:id',
    name: 'market_pointshop_goods_edit',
    meta: {
      title: '编辑上架商品',
      hideInMenu: true,
      snMenu: 'market_pointshop_goods_list',
      sn: 'moms:market:goodsupdate',
      notCache: true
    },
    component: () => import('@/view/market/pointshop/goods/edit.vue')
  },
  {
    path: 'goods_detail/:id',
    name: 'market_pointshop_goods_detail',
    meta: {
      title: '上架商品详情',
      hideInMenu: true,
      snMenu: 'market_pointshop_goods_list',
      sn: 'moms:market:goodsdetail',
      notCache: true
    },
    component: () => import('@/view/market/pointshop/goods/detail.vue')
  }
  ]
},
{
  path: '/market/cardactivity',
  name: 'card_activity',
  meta: {
    icon: '_iconcaiwubaobiao',
    title: '设备营销管理',
    showAlways: true,
    snMenu: 'card_activity',
    sn: 'moms:market:cardqrview|moms:market:cardactivityview'
  },
  component: Main,
  children: [{
    path: 'card',
    name: 'market_cardactivity_card',
    meta: {
      title: '集卡活动',
      snMenu: 'market_cardactivity_card',
      sn: 'moms:market:cardactivityview'
    },
    component: () => import('@/view/market/cardactivity/card/list.vue')
  }, {
    path: 'card_create',
    name: 'market_cardactivity_card_create',
    meta: {
      title: '集卡活动新增',
      hideInMenu: true,
      snMenu: 'market_cardactivity_card',
      sn: 'moms:market:cardactivitycreate'
    },
    component: () => import('@/view/market/cardactivity/card/create.vue')
  }, {
    path: 'card_edit',
    name: 'market_cardactivity_card_edit',
    meta: {
      title: '集卡活动编辑',
      hideInMenu: true,
      snMenu: 'market_cardactivity_card',
      sn: 'moms:market:cardactivityupdate'
    },
    component: () => import('@/view/market/cardactivity/card/edit.vue')
  }, {
    path: 'card_detail',
    name: 'market_cardactivity_card_detail',
    meta: {
      title: '集卡活动详情',
      hideInMenu: true,
      notCache: true,
      snMenu: 'market_cardactivity_card',
      sn: 'moms:market:cardactivitydetail'
    },
    component: () => import('@/view/market/cardactivity/card/detail.vue')
  }, {
    path: 'qrcode',
    name: 'market_cardactivity_qrcode',
    meta: {
      title: '卡片二维码',
      snMenu: 'market_cardactivity_qrcode',
      sn: 'moms:market:cardqrview'
    },
    component: () => import('@/view/market/cardactivity/qrcode/list.vue')
  }, {
    path: 'qrcode_create',
    name: 'market_cardactivity_qrcode_create',
    meta: {
      title: '卡片二维码生成',
      hideInMenu: true,
      snMenu: 'market_cardactivity_qrcode',
      sn: 'moms:market:cardqrcreate'
    },
    component: () => import('@/view/market/cardactivity/qrcode/create.vue')
  }]
},
{
  path: '/market/gift',
  name: 'market_gift',
  meta: {
    title: '赠品/奖品管理',
    sn: 'moms:market:giftlist'
  },
  component: Main,
  children: [{
    path: 'coupongift_list',
    name: 'market_gift_coupongift_list',
    meta: {
      title: '赠品/奖品管理',
      icon: '_iconjiangpinguanli',
      snMenu: 'market_gift_coupongift_list',
      sn: 'moms:market:giftlist',
      notCache: false
    },
    component: () => import('@/view/market/gift/coupon/list.vue')
  }]
},
{
  path: '/market/flybean',
  name: 'market_flybean',
  meta: {
    icon: '_iconcaiwubaobiao',
    title: '飞豆管理',
    showAlways: true,
    snMenu: 'market_flybean',
    sn: 'moms:market:ticketactivityview'
  },
  component: Main,
  children: [
    {
      path: 'flybean_list',
      name: 'flybean_list',
      meta: {
        title: '飞豆活动',
        snMenu: 'market_flybean',
        sn: 'moms:market:ticketactivityview'
      },
      component: () => import('@/view/market/flybean/list.vue')
    },
    {
      path: 'flybean_create',
      name: 'flybean_create',
      meta: {
        title: '新增飞豆',
        hideInMenu: true,
        snMenu: 'market_flybean',
        sn: 'moms:market:ticketactivitycreate'
      },
      component: () => import('@/view/market/flybean/create.vue')
    },
    {
      path: 'flybean_edit/:id',
      name: 'flybean_edit',
      meta: {
        title: '编辑飞豆',
        hideInMenu: true,
        snMenu: 'market_flybean',
        sn: 'moms:market:ticketactivityupdate'
      },
      component: () => import('@/view/market/flybean/edit.vue')
    },
    {
      path: 'flybean_detail/:id',
      name: 'flybean_detail',
      meta: {
        title: '查看飞豆详情',
        hideInMenu: true,
        snMenu: 'market_flybean',
        sn: 'moms:market:ticketactivitydetail'
      },
      component: () => import('@/view/market/flybean/detail.vue')
    }
  ]
},
{
  path: '/market/gameticket',
  name: 'market_gameticket',
  meta: {
    icon: '_iconcaiwubaobiao',
    title: '游戏券管理',
    showAlways: true,
    snMenu: 'market_gameticket',
    sn: 'moms:market:viewgamecouponconfiglist|moms:market:viewroundgamecouponlist|moms:market:viewpackagegamecouponlist|moms:market:viewprovidelist'
  },
  component: Main,
  children: [{
    path: 'price',
    name: 'market_gameticket_price',
    meta: {
      title: '价格管理',
      snMenu: 'market_gameticket_price',
      sn: 'moms:market:viewgamecouponconfiglist'
    },
    component: () => import('@/view/market/game-ticket/price/list.vue')
  },
  {
    path: 'price_create',
    name: 'market_gameticket_price_create',
    meta: {
      title: '新增价格',
      hideInMenu: true,
      snMenu: 'market_gameticket_price',
      sn: 'moms:market:creategamecouponconfig'
    },
    component: () => import('@/view/market/game-ticket/price/create.vue')
  },
  {
    path: 'price_edit/:id',
    name: 'market_gameticket_price_edit',
    meta: {
      title: '编辑价格',
      hideInMenu: true,
      snMenu: 'market_gameticket_price',
      sn: 'moms:market:updategamecouponconfig'
    },
    component: () => import('@/view/market/game-ticket/price/edit.vue')
  },
  {
    path: 'times',
    name: 'market_gameticket_times',
    meta: {
      title: '局数管理',
      snMenu: 'market_gameticket_times',
      sn: 'moms:market:viewgamecouponconfiglist'
    },
    component: () => import('@/view/market/game-ticket/times/list.vue')
  },
  {
    path: 'times_create',
    name: 'market_gameticket_times_create',
    meta: {
      title: '新增局数',
      hideInMenu: true,
      snMenu: 'market_gameticket_times',
      sn: 'moms:market:creategamecouponconfig'
    },
    component: () => import('@/view/market/game-ticket/times/create.vue')
  },
  {
    path: 'times_edit',
    name: 'market_gameticket_times_edit',
    meta: {
      title: '编辑局数',
      hideInMenu: true,
      snMenu: 'market_gameticket_times',
      sn: 'moms:market:updategamecouponconfig'
    },
    component: () => import('@/view/market/game-ticket/times/edit.vue')
  },
  {
    path: 'subcard',
    name: 'market_gameticket_subcard',
    meta: {
      title: '次卡管理',
      snMenu: 'market_gameticket_subcard',
      sn: 'moms:market:viewroundgamecouponlist'
    },
    component: () => import('@/view/market/game-ticket/subcard/list.vue')
  },
  {
    path: 'subcard_create',
    name: 'market_gameticket_subcard_create',
    meta: {
      title: '新增次卡',
      hideInMenu: true,
      snMenu: 'market_gameticket_subcard',
      sn: 'moms:market:createroundgamecoupon'
    },
    component: () => import('@/view/market/game-ticket/subcard/create.vue')
  },
  {
    path: 'subcard_edit',
    name: 'market_gameticket_subcard_edit',
    meta: {
      title: '编辑次卡',
      hideInMenu: true,
      snMenu: 'market_gameticket_subcard',
      sn: 'moms:market:updateroundgamecoupon'
    },
    component: () => import('@/view/market/game-ticket/subcard/edit.vue')
  },
  {
    path: 'subcard_detail',
    name: 'market_gameticket_subcard_detail',
    meta: {
      title: '次卡详情',
      notCache: true,
      hideInMenu: true,
      snMenu: 'market_gameticket_subcard',
      sn: 'moms:market:detailroundgamecoupon'
    },
    component: () => import('@/view/market/game-ticket/subcard/detail.vue')
  },
  {
    path: 'ticketbag',
    name: 'market_gameticket_ticketbag',
    meta: {
      title: '券包管理',
      snMenu: 'market_gameticket_ticketbag',
      sn: 'moms:market:viewpackagegamecouponlist'
    },
    component: () => import('@/view/market/game-ticket/ticketbag/list.vue')
  },
  {
    path: 'ticketbag_create',
    name: 'market_gameticket_ticketbag_create',
    meta: {
      title: '新增券包',
      hideInMenu: true,
      snMenu: 'market_gameticket_ticketbag',
      sn: 'moms:market:createpackagegamecoupon'
    },
    component: () => import('@/view/market/game-ticket/ticketbag/create.vue')
  },
  {
    path: 'ticketbag_edit',
    name: 'market_gameticket_ticketbag_edit',
    meta: {
      title: '编辑券包',
      hideInMenu: true,
      snMenu: 'market_gameticket_ticketbag',
      sn: 'moms:market:updatepackagegamecoupon'
    },
    component: () => import('@/view/market/game-ticket/ticketbag/edit.vue')
  },
  {
    path: 'ticketbag_detail',
    notCache: true,
    name: 'market_gameticket_ticketbag_detail',
    meta: {
      title: '券包详情',
      notCache: true,
      hideInMenu: true,
      snMenu: 'market_gameticket_ticketbag',
      sn: 'moms:market:detailpackagegamecoupon'
    },
    component: () => import('@/view/market/game-ticket/ticketbag/detail.vue')
  }
  // {
  //   path: 'grant',
  //   name: 'market_gameticket_grant',
  //   meta: {
  //     title: '发放管理',
  //     snMenu: 'market_gameticket_grant',
  //     sn: 'moms:market:viewprovidelist'
  //   },
  //   component: () => import('@/view/market/game-ticket/grant/list.vue')
  // },
  // {
  //   path: 'grant_create',
  //   name: 'market_gameticket_grant_create',
  //   meta: {
  //     title: '新增发放',
  //     notCache: true,
  //     hideInMenu: true,
  //     snMenu: 'market_gameticket_grant',
  //     sn: 'moms:market:createprovide'
  //   },
  //   component: () => import('@/view/market/game-ticket/grant/create.vue')
  // },
  // {
  //   path: 'grant_detail',
  //   name: 'market_gameticket_grant_detail',
  //   meta: {
  //     title: '发放详情',
  //     notCache: true,
  //     hideInMenu: true,
  //     snMenu: 'market_gameticket_grant'
  //     // sn: 'moms:pay:viewrefundrecords'
  //   },
  //   component: () => import('@/view/market/game-ticket/grant/detail.vue')
  // }
  ]
},
{
  path: '/market/messagetemplate',
  name: 'market_messagetemplate',
  meta: {
    title: '消息模板',
    sn: 'moms:market:messagetemplateview'
  },
  component: Main,
  children: [{
    path: 'list',
    name: 'market_messagetemplate_list',
    meta: {
      title: '消息模板',
      icon: '_iconjifenshangcheng',
      snMenu: 'market_messagetemplate_list',
      sn: 'moms:market:messagetemplateview'
      // notCache: false
    },
    component: () => import('@/view/market/message/list.vue')
  },
  {
    path: 'create',
    name: 'market_messagetemplate_create',
    meta: {
      title: '新增消息模板',
      hideInMenu: true,
      snMenu: 'market_messagetemplate_list',
      sn: 'moms:market:messagetemplatecreate'
    },
    component: () => import('@/view/market/message/create.vue')
  },
  {
    path: 'edit/:id',
    name: 'market_messagetemplate_edit',
    meta: {
      title: '编辑消息模板',
      hideInMenu: true,
      snMenu: 'market_messagetemplate_list',
      sn: 'moms:market:messagetemplateupdate',
      notCache: true
    },
    component: () => import('@/view/market/message/edit.vue')
  }
  ]
},
{
  path: '/report_finance',
  name: 'report_finance',
  meta: {
    icon: '_iconcaiwubaobiao',
    title: '财务报表',
    showAlways: true,
    snMenu: 'report_finance',
    sn: 'moms:report:receivables|moms:report:otherrevenue|moms:report:coinrevenue|moms:report:thirdpartyrevenue|moms:report:dailyanalytics|moms:report:gamecouponrevenueanalytics|moms:report:coindiffanalytics|moms:report:ticketanalytics|moms:report:pointanalytics'
  },
  component: Main,
  children: [
    {
      path: 'receivables/list',
      name: 'report_finance_receivables',
      meta: {
        title: '店面营收统计表',
        snMenu: 'report_finance_receivables',
        sn: 'moms:report:receivables'
      },
      component: () => import('@/view/report/finance/receivables/list.vue')
    },
    {
      path: 'gamesecurities/list',
      name: 'report_finance_gamesecurities',
      meta: {
        title: '游戏券收入表',
        snMenu: 'report_finance_gamesecurities',
        sn: 'moms:report:gamecouponrevenueanalytics'
      },
      component: () => import('@/view/report/finance/gamesecurities/list.vue')
    },
    {
      path: 'integralstatistics/list',
      name: 'report_finance_integralstatistics',
      meta: {
        title: '积分统计表',
        snMenu: 'report_finance_integralstatistics',
        sn: 'moms:report:pointanalytics'
      },
      component: () => import('@/view/report/finance/integralstatistics/list.vue')
    },
    {
      path: 'lottery/list',
      name: 'report_finance_lottery',
      meta: {
        title: '彩票统计表',
        snMenu: 'report_finance_lottery',
        sn: 'moms:report:ticketanalytics'
      },
      component: () => import('@/view/report/finance/lottery/list.vue')
    },
    {
      path: 'otherrevenue/list',
      name: 'report_finance_otherrevenue',
      meta: {
        title: '今日另收表',
        snMenu: 'report_finance_otherrevenue',
        sn: 'moms:report:otherrevenue'
      },
      component: () => import('@/view/report/finance/otherrevenue/list.vue')
    },
    {
      path: 'otherrevenue/group_detail/:id',
      name: 'report_finance_otherrevenue_group_detail',
      meta: {
        title: '今日另收表-团购明细',
        notCache: true,
        snMenu: 'report_finance_otherrevenue',
        sn: 'moms:report:otherrevenue',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/otherrevenue/group-detail.vue')
    },
    {
      path: 'otherrevenue/rent_detail/:id',
      name: 'report_finance_otherrevenue_rent_detail',
      meta: {
        title: '今日另收表-租赁明细',
        notCache: true,
        snMenu: 'report_finance_otherrevenue',
        sn: 'moms:report:otherrevenue',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/otherrevenue/rent-detail.vue')
    },
    {
      path: 'otherrevenue/card_detail/:id',
      name: 'report_finance_otherrevenue_card_detail',
      meta: {
        title: '今日另收表-新项目明细',
        notCache: true,
        snMenu: 'report_finance_otherrevenue',
        sn: 'moms:report:otherrevenue',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/otherrevenue/card-detail.vue')
    },
    {
      path: 'otherrevenue/deposit_detail/:id',
      name: 'report_finance_otherrevenue_deposit_detail',
      meta: {
        title: '今日另收表-非会员押金明细',
        notCache: true,
        snMenu: 'report_finance_otherrevenue',
        sn: 'moms:report:otherrevenue',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/otherrevenue/deposit-detail.vue')
    },
    {
      path: 'coinrevenue/list',
      name: 'report_finance_coinrevenue',
      meta: {
        title: '游戏币收入汇总表',
        snMenu: 'report_finance_coinrevenue',
        sn: 'moms:report:coinrevenue'
      },
      component: () => import('@/view/report/finance/coinrevenue/list.vue')
    },
    {
      path: 'coinrevenue/detail/:id',
      name: 'report_finance_coinrevenue_detail',
      meta: {
        title: '游戏币收入明细表',
        notCache: true,
        snMenu: 'report_finance_coinrevenue',
        sn: 'moms:report:coinrevenue',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/coinrevenue/detail.vue')
    },
    {
      path: 'thirdpartyrevenue/list',
      name: 'report_finance_thirdpartyrevenue',
      meta: {
        title: '第三方支付统计表',
        snMenu: 'report_finance_thirdpartyrevenue',
        sn: 'moms:report:thirdpartyrevenue'
      },
      component: () => import('@/view/report/finance/thirdpartyrevenue/list.vue')
    },
    {
      path: 'thirdpartyrevenue/detail/:shopId/:startDate/:endDate/:t',
      name: 'report_finance_thirdpartyrevenue_detail',
      meta: {
        title: '第三方支付明细表',
        snMenu: 'report_finance_thirdpartyrevenue',
        sn: 'moms:report:thirdpartyrevenue',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/thirdpartyrevenue/detail.vue')
    },
    {
      path: 'dailyanalytics/list',
      name: 'report_finance_dailyanalytics',
      meta: {
        title: '店面日营运分析表',
        snMenu: 'report_finance_dailyanalytics',
        sn: 'moms:report:dailyanalytics'
      },
      component: () => import('@/view/report/finance/dailyanalytics/list.vue')
    },
    {
      path: 'gamecurrencydiff/list',
      name: 'report_finance_gamecurrencydiff',
      meta: {
        title: '游戏币流转差异',
        snMenu: 'report_finance_gamecurrencydiff',
        sn: 'moms:report:coindiffanalytics'
      },
      component: () => import('@/view/report/finance/gamecurrencydiff/list.vue')
    },
    {
      path: 'gamecurrencydiff/list/detail/:id/:startTime/:endTime/:menu/:shopName/:dateType',
      name: 'report_finance_gamecurrencydiff_detail',
      meta: {
        title: '游戏币流转差异明细',
        snMenu: 'report_finance_gamecurrencydiff',
        sn: 'moms:report:coindiffanalytics',
        hideInMenu: true,
        notCache: true
      },
      component: () => import('@/view/report/finance/gamecurrencydiff/list-detail.vue')
    },
    {
      path: 'dailyanalytics/detail/:dateTime/:shopId',
      name: 'report_finance_dailyanalytics_detail',
      meta: {
        title: '每日结账明细',
        notCache: true,
        snMenu: 'report_finance_dailyanalytics',
        sn: 'moms:report:dailyanalytics',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/dailyanalytics/detail.vue')
    },
    {
      path: 'dailyanalytics/wxdetail/:dateTime/:shopId',
      name: 'report_finance_dailyanalytics_wxdetail',
      meta: {
        title: '微信销售统计',
        notCache: true,
        snMenu: 'report_finance_dailyanalytics',
        sn: 'moms:report:dailyanalytics',
        hideInMenu: true
      },
      component: () => import('@/view/report/finance/dailyanalytics/wxdetail.vue')
    }
  ]
},
{
  path: '/report_shop',
  name: 'report_shop',
  meta: {
    icon: '_iconmendianbaobiao',
    title: '门店报表',
    showAlways: true,
    snMenu: 'report_shop',
    sn: 'moms:report:basicanalytics|moms:report:dailysummaryanalytics|moms:report:weixinanalytics|moms:report:groupbuyanalytics|moms:report:coinanalytics|moms:report:bill|moms:report:viewtransferrecord|moms:report:coincouponanalytics|moms:report:memberbalanceanalytics'
  },
  component: Main,
  children: [{
    path: 'basicdataanalysis/list',
    name: 'report_shop_basicdataanalysis',
    meta: {
      title: '基础数据分析',
      snMenu: 'report_shop_basicdataanalysis',
      sn: 'moms:report:basicanalytics'
    },
    component: () => import('@/view/report/shop/basicdataanalysis/list.vue')
  },
  {
    path: 'dailyanalytics/list',
    name: 'report_shop_dailyanalytics',
    meta: {
      title: '店面日汇总',
      snMenu: 'report_shop_dailyanalytics',
      sn: 'moms:report:dailysummaryanalytics'
      // hideInMenu: true
    },
    component: () => import('@/view/report/shop/dailyanalytics/list.vue')
  },
  {
    path: 'groupbuying/list',
    name: 'report_shop_groupbuying',
    meta: {
      title: '团购统计',

      snMenu: 'report_shop_groupbuying',
      sn: 'moms:report:groupbuyanalytics'
      // hideInMenu: true
    },
    component: () => import('@/view/report/shop/groupbuying/list.vue')
  },
  {
    path: 'groupbuying/list/detail/:id/:startTime/:endTime',
    name: 'report_shop_groupbuying_detail',
    meta: {
      title: '团购统计明细',
      notCache: true,
      snMenu: 'report_shop_groupbuying',
      sn: 'moms:report:groupbuyanalytics',
      hideInMenu: true
    },
    component: () => import('@/view/report/shop/groupbuying/list-detail.vue')
  },
  {
    path: 'everydaycheckout/list',
    name: 'report_shop_everydaycheckout',
    meta: {
      title: '每日结账',

      snMenu: 'report_shop_everydaycheckout',
      sn: 'moms:report:bill'
      // hideInMenu: true
    },
    component: () => import('@/view/report/shop/everydaycheckout/list.vue')
  },
  {
    path: 'everydaycheckout/list/detail/:dateTime/:shopId',
    name: 'report_shop_everydaycheckout_detail',
    meta: {
      title: '每日结账明细',
      notCache: true,
      snMenu: 'report_shop_everydaycheckout',
      sn: 'moms:report:bill',
      hideInMenu: true
    },
    component: () => import('@/view/report/shop/everydaycheckout/detail.vue')
  },
  {
    path: 'wxstatistics/list',
    name: 'report_shop_wxstatistics',
    meta: {
      title: '微信统计',

      snMenu: 'report_shop_wxstatistics',
      sn: 'moms:report:weixinanalytics'
      // hideInMenu: true
    },
    component: () => import('@/view/report/shop/wxstatistics/list.vue')
  },
  {
    path: 'newshop/list',
    name: 'report_shop_newshop',
    meta: {
      title: '新店转卡明细',

      snMenu: 'report_shop_newshop',
      sn: 'moms:report:viewtransferrecord'
      // hideInMenu: true
    },
    component: () => import('@/view/report/shop/newshop/list.vue')
  },
  {
    path: 'coincertificate/list',
    name: 'report_shop_coincertificate',
    meta: {
      title: '兑换券统计',
      snMenu: 'report_shop_coincertificate',
      sn: 'moms:report:coincouponanalytics'
    },
    component: () => import('@/view/report/shop/coincertificate/list.vue')
  },
  {
    path: 'coincertificate/list/detail/:id/:title',
    name: 'report_shop_coincertificate_detail',
    meta: {
      title: '兑换券明细',
      snMenu: 'report_shop_coincertificate',
      sn: 'moms:report:coincouponanalytics',
      notCache: true,
      hideInMenu: true
    },
    component: () => import('@/view/report/shop/coincertificate/list-detail.vue')
  },
  {
    path: 'gamecurrency/list',
    name: 'report_shop_gamecurrency',
    meta: {
      title: '游戏币流转',
      snMenu: 'report_shop_gamecurrency',
      sn: 'moms:report:coinanalytics'
      // hideInMenu: true
    },
    component: () => import('@/view/report/shop/gamecurrency/list.vue')
  },
  {
    path: 'gamecurrency/receive_number/:id',
    name: 'report_shop_gamecurrency_receive_number',
    meta: {
      title: '领用详情',
      notCache: true,
      snMenu: 'report_shop_gamecurrency',
      sn: 'moms:report:coinanalytics',
      hideInMenu: true
    },
    component: () => import('@/view/report/shop/gamecurrency/receive-number.vue')
  },
  {
    path: 'gamecurrency/enter_currency/:id',
    name: 'report_shop_gamecurrency_enter_currency',
    meta: {
      title: '入币数',
      notCache: true,
      snMenu: 'report_shop_gamecurrency',
      sn: 'moms:report:coinanalytics',
      hideInMenu: true
    },
    component: () => import('@/view/report/shop/gamecurrency/enter-currency.vue')
  },
  {
    path: 'gamecurrency/appear_currency/:id',
    name: 'report_shop_gamecurrency_appear_currency',
    meta: {
      title: '取币记录',
      notCache: true,
      snMenu: 'report_shop_gamecurrency',
      sn: 'moms:report:coinanalytics',
      hideInMenu: true
    },
    component: () => import('@/view/report/shop/gamecurrency/appear-currency.vue')
  }]
},
{
  path: '/report_memberd',
  name: 'report_memberd',
  meta: {
    icon: '_iconshebeibaobiao',
    title: 'SVIP会员报表',
    showAlways: true,
    snMenu: 'report_memberd',
    sn: 'moms:report:membersvipanalytics'
  },
  component: Main,
  children: [{
    path: 'salesanalysis/list',
    name: 'report_member_salesanalysis',
    meta: {
      title: 'SVIP销售分析',
      snMenu: 'report_member_salesanalysis',
      sn: 'moms:report:membersvipanalytics'
      // hideInMenu: true
    },
    component: () => import('@/view/report/member/salesanalysis/list.vue')
  },
  {
    path: 'salesanalysis/list/:id',
    name: 'report_member_salesanalysis_detail',
    meta: {
      title: 'SVIP用户销售明细表',
      snMenu: 'report_member_salesanalysis_detail',
      notCache: true,
      sn: 'moms:report:membersvipdetailanalytic',
      hideInMenu: true
    },
    component: () => import('@/view/report/member/salesanalysis/detail.vue')
  },
  {
    path: 'salesanalysis/list/behavior/:id',
    name: 'report_member_salesanalysis_behavior_detail',
    meta: {
      title: 'SVIP用户消费行为明细',
      snMenu: 'report_member_salesanalysis_behavior_detail',
      sn: 'moms:report:membersvipbehavioranalytics',
      notCache: true,
      hideInMenu: true
    },
    component: () => import('@/view/report/member/salesanalysis/behavior-detail.vue')
  }]
},
{
  path: '/report_hardware',
  name: 'report_hardware',
  meta: {
    icon: '_iconshebeibaobiao',
    title: '设备报表',
    showAlways: true,
    snMenu: 'report_hardware',
    sn: 'moms:report:devicemonitor|moms:report:smartdevicemonitor'
  },
  component: Main,
  children: [{
    path: 'cardreader/list',
    name: 'report_hardware_cardreader',
    meta: {
      title: '刷卡器监控',
      snMenu: 'report_hardware_cardreader',
      sn: 'moms:report:smartdevicemonitor'
      // hideInMenu: true
    },
    component: () => import('@/view/report/hardware/cardreader/list.vue')
  },
  {
    path: 'machine/list',
    name: 'report_hardware_machine',
    meta: {
      title: '一体机监控',
      snMenu: 'report_hardware_machine',
      sn: 'moms:report:devicemonitor'
      // hideInMenu: true
    },
    component: () => import('@/view/report/hardware/machine/list.vue')
  },
  {
    path: 'machine/list/card',
    name: 'report_hardware_machine_card',
    meta: {
      title: '出卡监控',
      notCache: true,
      snMenu: 'report_hardware_machine',
      sn: 'moms:report:smartdevicetakecardmonitor',
      hideInMenu: true
    },
    component: () => import('@/view/report/hardware/machine/list-card.vue')
  }]
},
...ReportRouter,
...fishingRouter,
{
  path: '/401',
  name: 'error_401',
  meta: {
    hideInMenu: true
  },
  component: () => import('@/view/error-page/401.vue')
},
{
  path: '/500',
  name: 'error_500',
  meta: {
    hideInMenu: true
  },
  component: () => import('@/view/error-page/500.vue')
},
{
  path: '*',
  name: 'error_404',
  meta: {
    hideInMenu: true
  },
  component: () => import('@/view/error-page/404.vue')
}
]
